<template>
  <div id="app">
    <router-view></router-view>
  </div>
</template>

<script>

export default {
  name:"App",
  // 监听刷新
  mounted() {
    window.addEventListener("unload",this.saveState)
  },
  methods:{
    saveState() {
      sessionStorage.setItem("user",JSON.stringify(this.$store,getters.getUser))
    }
  }
}
</script>

<style>
@import "./assets/css/reset.css";
</style>
